package edu.sctu.practice.class02.shuqiqi.assign.assign03.Two;

/**
 * Created by admin on 2015/11/4.
 */
public class Max {



        public static Comparable max(Comparable O1, Comparable o2){
            if (O1.compareTo(o2) == 0) {
                System.out.println("circle面积较大");
                return O1;
            } else {
                System.out.println("Cylinder面积较大");
                return o2;
            }

        }
    }

